package com.chen.service;

import com.chen.pojo.Person;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface PersonService {
    public void insert(Person person);
    public Person getById(int id);
    public List<Person> list();
    public void update(Person person);
    public void delete(int id);
}
